package com.lm.scau.dyb.bean;

import com.lm.scau.dyb.utils.FlagHelper;

import org.json.JSONException;
import org.json.JSONObject;

import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;

/**
 * Function:
 * auth：liming on 2016/8/16 10:26
 * mail：liming@wxchina.com
 */
public class PackageBean {
    public String msgname;
    public String method;
    public JSONObject cont;

    @Override
    public String toString() {
        JSONObject obj = new JSONObject();
        try {
            obj.put("msgname", msgname);
            obj.put("method", method);
            obj.put("cont", cont);
        } catch (JSONException e) {
            e.printStackTrace();
        }
           // return FlagHelper.SERVER_URL + URLEncoder.encode(obj.toString(), "utf-8");
            return obj.toString().replace(" ","%2B");
    }
}
